/* Import (extern) header for application - AppBuilder 2.03  */

#include "abdefine.h"

extern ApEventLink_t AbInternalLinks[];

extern ApWindowLink_t base;
extern ApDialogLink_t trend_opt;
extern ApDialogLink_t trend_arch;
extern ApPictureLink_t pictures;
extern ApDialogLink_t arch_opt;
extern ApDialogLink_t syslog;
extern ApDialogLink_t mentor_log;
extern ApDialogLink_t CTNet_dlg;
extern ApWidget_t AbWidgets[ 182 ];


#ifdef __cplusplus
extern "C" {
#endif
int init( int argc, char **argv );
int setup_all( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int hotkey( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int sch_select( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int main_timer( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int shutdown_btn( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int main_timer( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int trend_opt_setup( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int arch_beg_setup( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int trend_arch_setup( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int trend_opt_done( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int trend_arch_done( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int arch_beg_ok( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int trend_opt_reset( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int arch_opt_setup( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int arch_ep_combo( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int show_syslog( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int show_mentor_log( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int btn_othello( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int btn_vpoker( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
void alarms_list_draw(
        PtWidget_t *widget, PtGenListItem_t *items, unsigned index,
        unsigned nitems, PhRect_t *where
        )

;
void alarms_list_select(
        PtWidget_t *widget, PtGenListItem_t *item, int pos, int column,
        int nitems, int subtype, PhEvent_t *ev
        )

;
int alarm_combo_select( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int alarm_show_arch( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
void active_alarms_list_draw(
        PtWidget_t *widget, PtGenListItem_t *items, unsigned index,
        unsigned nitems, PhRect_t *where
        )

;
void active_alarms_list_select(
        PtWidget_t *widget, PtGenListItem_t *item, int pos, int column,
        int nitems, int subtype, PhEvent_t *ev
        )

;
int switch_to_alarm_list( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int update_mentor_log( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int print_arch( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
int Tty_open( PtWidget_t *widget, ApInfo_t *data, PtCallbackInfo_t *cbinfo );
#ifdef __cplusplus
}
#endif
